<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
Route::post('login', 'oauth/login')->name('login');
Route::get('register', 'oauth/register')->name('register');
Route::get('installed', 'oauth/installed')->name('installed');

Route::group(function () {
    Route::post('upload_music', 'upload/music')->name('upload_music');
    Route::post('upload_image', 'upload/image')->name('upload_image');
    Route::resource('song', 'Song');
    Route::resource('singer', 'Singer');
    Route::get('logout', 'oauth/logout')->name('logout');
    Route::get('oss_url', 'oss/url')->name('oss_url');
    Route::post('change_password', 'oauth/changePassword')->name('change_password');
})->middleware(\app\middleware\TokenCheck::class);;

